package com.lcredu.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lcredu.seckill.pojo.SeckillGoods;
import com.lcredu.seckill.service.SeckillGoodsService;
import com.lcredu.seckill.mapper.SeckillGoodsMapper;
import com.lcredu.seckill.vo.GoodsVo;
import org.junit.jupiter.api.Test;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * @author 18442
 * @description 针对表【t_seckill_goods(秒杀活动商品信息表（记录秒杀价、库存及时间范围）)】的数据库操作Service实现
 * @createDate 2025-08-26 22:03:30
 */
@Service
public class SeckillGoodsServiceImpl extends ServiceImpl<SeckillGoodsMapper, SeckillGoods>
        implements SeckillGoodsService {
    @Resource
    private SeckillGoodsMapper seckillGoodsMapper;


    @Override
    public List<GoodsVo> listGoodsVos() {
        return seckillGoodsMapper.listGoodsVos();
    }

    @Override
    public GoodsVo getGoodsVoById(Long goodsId) {
        return seckillGoodsMapper.getGoodsVoById(goodsId);
    }


}




